import apiRequest from '@/plugins/apiRequest.js';
import config from 'uview-ui/libs/config/config';
import {
	apiContextPathSsbd
} from "./index.js"
const api = {
	baseInfo: {
		/**
		 * 保存基本信息
		 * @param {Object} data
		 */
		save(data) {
			return apiRequest.post(
				apiContextPathSsbd + 'api/user/setVideoId', 
				data,{
					header: {
						'Content-Type': 'application/x-www-form-urlencoded'
					}
				}
			);
		},
		getUserInfo() {
			return apiRequest.post(
				apiContextPathSsbd + 'api/user/info',{
					header: {
						'Content-Type': 'application/x-www-form-urlencoded'
					}
				}
			);
		},
		getMnQrcode(code) {
			return apiRequest.get(
				apiContextPathSsbd + 'api/share/getMnQrcode?type=0&url=pages/home&distribution_code=' + code,{
					header: {
						'Content-Type': 'application/x-www-form-urlencoded'
					}
				}
			);
		},
		orderList() {
			return apiRequest.get(
				apiContextPathSsbd + 'api/wechatStoreOrder/lists',{
					header: {
						'Content-Type': 'application/x-www-form-urlencoded'
					}
				}
			);
		},
		confirmQueue(data) {
			return apiRequest.post(
				apiContextPathSsbd + 'api/wechatStoreOrder/confirm',data,{
					header: {
						'Content-Type': 'application/x-www-form-urlencoded'
					}
				}
			);
		}
	},

}

export default api;
